<div class="myorder" ng-controller="OrdersController">
    <!--<style>-->
    <!--html,body{-->
    <!--background:#F1F1F1;-->
    <!--}-->
    <!--</style>-->
    <!--头部开始-->
    <div class="head pd_tb14">
        <a class="back" ui-sref="my.index"></a>
        <span class="headline f18">我的订单</span>
    </div>
    <!--头部结束-->
    <!--导航开始-->
    <div class="orders-tab">
        <ul class="clear">
            <li class="fl f14" ng-class="{true: 'active',false:''}[status=='']"><a  ui-sref="my.orders({status:''})">全部</a></li>
            <li class="fl f14" ng-class="{true: 'active',false:''}[status=='-1']"><a  ui-sref="my.orders({status:'-1'})">待支付</a></li>
            <li class="fl f14" ng-class="{true: 'active',false:''}[status=='0']"><a  ui-sref="my.orders({status:'0'})">待发货</a></li>
            <li class="fl f14" ng-class="{true: 'active',false:''}[status=='1']"><a  ui-sref="my.orders({status:'1'})">待收货</a></li>
            <li class="fl f14" ng-class="{true: 'active',false:''}[status=='2']"><a  ui-sref="my.orders({status:'2'})">已完成</a></li>
        </ul>
    </div>
    <!--导航结束-->
    <!--订单列表开始-->
    <div class="orders_row_list f12" infinite-scroll="orders.nextPage()" infinite-scroll-disabled='orders.busy' infinite-scroll-distance="1" ng-controller="PublicController">
        <!----有按钮---->
        <div class="itme-order pd_rl12 pd_rl16" style="padding-bottom:0" ng-repeat="order in orders.items" change-state order-state="order.new_state" create-time="order.create_timestamp">   <!--有按钮的时候padding-bottom为0-->
            <div class="state clear">
                <p class="fl">订单编号：<span ng-bind="order.order_id"></span></p>
                <p class="fr" ng-bind="statusText(order.new_state)"></p>
            </div>
            <div class="orders_row_con clear">
                <div class="thumb_size2 fl" ui-sref="my.order({id:{{order.order_id}}})">
                    <img ng-src="{{order.thumb}}" alt="">
                </div>
                <div class="orders_row_info fl" ui-sref="my.order({id:{{order.order_id}}})">
                    <div class="good_info clear">
                        <div class="title hd2 fl" ng-bind="order.title"></div>
                        <div class="price fr" ng-if="order.type==2">
                            <p>在线选座
                                <span ng-if="order.deliver_type==1" style="color:#FC0F4A;"> - 快递取票</span>
                                <span ng-if="order.deliver_type==2" style="color:#FC0F4A;"> - 校区取票</span>
                                <span ng-if="order.deliver_type==3" style="color:#FC0F4A;"> -上门取票</span>
                                <span ng-if="order.deliver_type==4" style="color:#FC0F4A;"> - 现场取票</span>
                            </p>
                            <p ng-bind="order.total | currency:'¥'"></p>
                            <p ng-bind="order.num+'张'"></p>
                        </div>
                        <div class="price fr" ng-if="order.type==1">
                            <p>随机连座 -
                                <span ng-if="order.deliver_type==1" style="color:#FC0F4A;"> - 快递取票</span>
                                <span ng-if="order.deliver_type==2" style="color:#FC0F4A;"> - 校区取票</span>
                                <span ng-if="order.deliver_type==3" style="color:#FC0F4A;"> -上门取票</span>
                                <span ng-if="order.deliver_type==4" style="color:#FC0F4A;"> -现场取票</span></p>
                            <p ng-bind="order.total | currency:'¥'"></p>
                            <p ng-bind="order.num+'张'"></p>
                        </div>
                    </div>
                    <div class="time">
                        <p ng-bind="order.begindate"></p>
                    </div>
                    <div class="addres">
                        <p ng-bind="order.site_title"></p>
                    </div>
                </div>
            </div>
            <div class="orders_row_btns clear" style="padding:0.21333rem 0" ng-hide="(order.new_state=='已退款')||(order.new_state=='待发货')||(order.new_state=='已完成'&&order.deliver_type==2)">  <!--无按钮的时候-->
                <div class="Btn_time fl" ng-show="order.new_state=='待付款'" style="height:0.72rem;line-height:0.72rem;"><p change-state1 order-state="order.new_state" create-time="order.create_timestamp" ></p></div>
                <div class="btns">
                    <a href="" ng-if="order.new_state=='待付款'"  ng-click="alertmodel('{{order.order_id+'cen'}}')">取消订单</a>
                    <a href="" ng-if="order.new_state=='待付款'" ui-sref="my.order({id:{{order.order_id}}})">立即支付</a>
                    <a href="" ng-if="order.new_state=='已取消'"  ng-click="alertmodel('{{order.order_id+'del'}}')">删除订单</a>
                    <a href="" ng-if="(order.new_state=='已完成'||order.new_state=='待收货')&&(order.deliver_type!=2)" ui-sref="my.logistics_information({order_id:{{order.order_id}}})">查看物流</a>
                    <a href="" ng-if="order.new_state=='待收货'" ng-click="donelOrder(order.order_id,order)">确认收货</a>
                </div>
            </div>
            <!--删除提示开始-->
            <div class="pubtps {{order.order_id+'del'}}" close-model>
                <div class="pubtps-box" stop-propagation>
                    <div class="con-box">
                        <div class="img"><img src="static/img/download2.png" alt=""></div>
                        <div class="tips"><p>真的要删除这个订单吗?</p></div>
                        <div class="tpsbtns">
                            <a href="" class="a1" ng-click="deleteOrder(order.order_id,order)">残忍删除</a>
                            <a href="" class="a2" close-model>再看看</a>
                        </div>
                    </div>
                    <div class="pubtps-close" close-model></div>
                </div>
            </div>
            <!--删除提示结束-->
            <!--取消提示开始-->
            <div class="pubtps {{order.order_id+'cen'}}" close-model>
                <div class="pubtps-box" stop-propagation>
                    <div class="con-box">
                        <div class="img"><img src="static/img/download2.png" alt=""></div>
                        <div class="tips"><p>真的要取消这个订单吗?</p></div>
                        <div class="tpsbtns">
                            <a href="" class="a1" ng-click="cancelOrder(order.order_id,order)">取消订单</a>
                            <a href="" class="a2" close-model>再看看</a>
                        </div>
                    </div>
                    <div class="pubtps-close" close-model></div>
                </div>
            </div>
            <!--删除提示结束-->
        </div>
    </div>
    <!--订单列表结束-->
    <!--暂无数据开始-->
    <div class="nodata" ng-show="orders.nodata">
        <div class="no_order"></div>
        <p class="f14">咦，目前还没有订单</p>
    </div>
    <!--暂无数据结束-->
    <!--支付方式开始-->
    <div class="mask_pay" ng-click="close()">
        <div class="pay_box br" ng-click="bubble($event)">
            <div class="pay_title f14 pd_rl16">
                <span>支付方式</span>
                <i class="off" ng-click="close()"></i>
            </div>
            <div class="timer pd_tb8 linear">
                <p>支付剩余时间{{date|date:'mm:ss'}}</p>
            </div>
            <div class="pay_method pd_rl12">
                <ul>
                    <li ng-show="!showPay" ng-click="pay()">
                        <i class="alipay"></i>
                        <span>支付宝</span>
                        <i class="arrow"></i>
                    </li>
                    <li ng-show="showPay" ng-click="pay()">
                        <i class="pay_wechat"></i>
                        <span>微信</span>
                        <i class="arrow"></i>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <!--支付方式结束-->

    <form id="alipaysubmit" name="alipaysubmit" action="" method="post">
        <input type="hidden" name="biz_content" value=""/>
    </form>
    <script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
</div>